package com.slxy.annonation;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Data
@Repository
public class DemoD {
    private DemoA demoA;
    private DemoB demoB;
@Autowired
    public DemoD(DemoA demoA, DemoB demoB) {
        this.demoA = demoA;
        this.demoB = demoB;
    }
}
